package com.summer.peony.system.pojo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @ClassName: SysRole
 * @Description: TODO(系统角色实体类)
 * @author: TaoGe
 * @date: 2020年6月30日 上午11:20:37
 * @version: v0.0.1
 */
public class SysRole implements Serializable {
	/**
	 * @author: TaoGe
	 * @Fields: serialVersionUID:TODO(用一句话描述这个变量表示什么)
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * @author: TaoGe
	 * @Fields: roleId:TODO(角色id)
	 */
	private Integer roleId;

	/**
	 * @author: TaoGe
	 * @Fields: roleName:TODO(角色名称)
	 */
	private String roleName;

	/**
	 * @author: TaoGe
	 * @Fields: roleCode:TODO(角色编码)
	 */
	private String roleCode;

	/**
	 * @author: TaoGe
	 * @Fields: roleDesc:TODO(角色描述)
	 */
	private String roleDesc;

	/**
	 * @author: TaoGe
	 * @Fields: createTime:TODO(创建时间)
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	/**
	 * @author: TaoGe
	 * @Fields: updateTime:TODO(更新时间)
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateTime;

	/**
	 * @author: TaoGe
	 * @Fields: delFlag:TODO(删除标识（0-正常,1-删除）)
	 */
	private String delFlag;

	/**
	 * @author: TaoGe
	 * @Fields: menuIds:TODO(菜单组)
	 */
	private Integer[] menuIds;

	/**
	 * @author: TaoGe
	 * @Fields: deptIds:TODO(部门组（数据权限）)
	 */
	private Integer[] deptIds;

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName == null ? null : roleName.trim();
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode == null ? null : roleCode.trim();
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc == null ? null : roleDesc.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag == null ? null : delFlag.trim();
	}

	public Integer[] getMenuIds() {
		return menuIds;
	}

	public void setMenuIds(Integer[] menuIds) {
		this.menuIds = menuIds;
	}

	public Integer[] getDeptIds() {
		return deptIds;
	}

	public void setDeptIds(Integer[] deptIds) {
		this.deptIds = deptIds;
	}
}